/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package controller;

import javax.naming.Context;
import javax.naming.InitialContext;
import javax.servlet.jsp.JspWriter;
import session.DefectlogFacadeRemote;
import util.Constants;

/**
 *
 * @author THAT_HIEN
 */
public class logReportController {

    static String action = "<a href='#'>Edit</a><a href='#'>Delete</a>";

    /**
     * Show all severities on screen
     */
    public static void showAllLog(JspWriter out) {
        Controller.log.info("showAllLog");
        try {
            /*
             * Show Severity List on Screen
             */
            //Create the title
            out.println("<div id='list-table'>");
            out.println("<div class='row'>");

            out.println("<div class='column-header' style='width: "
                    + Constants.OBJECT_NAME_COLUMN_SIZE + ";'>Amount Log</div>");
            out.println("<div class='column-header' style='width: "
                    + Constants.OBJECT_NAME_COLUMN_SIZE + ";'>Fixed Log </div>");
            out.println("<div class='column-header' style='width: "
                    + Constants.OBJECT_NAME_COLUMN_SIZE + ";'>New Log</div>");
            out.println("<div class='column-header' style='width: "
                    + Constants.OBJECT_NAME_COLUMN_SIZE + ";'>Accept Log</div>");
            out.println("<div class='clear'></div>");
            out.println("</div>");

            //Show Values

            out.println("<div class='row'>");
//            out.println("<div class='column' style='width: "
//                    + Constants.OBJECT_NAME_COLUMN_SIZE + ";'>"
//                    + sevBean.amountLog() + "</div>");
//            out.println("<div class='column' style='width: "
//                    + Constants.OBJECT_NAME_COLUMN_SIZE + ";'>"
//                    + sevBean.fixedLog() + "</div>");
//            out.println("<div class='column' style='width: "
//                    + Constants.OBJECT_NAME_COLUMN_SIZE + ";'>"
//                    + sevBean.newLog() + "</div>");
//            out.println("<div class='column' style='width: "
//                    + Constants.OBJECT_NAME_COLUMN_SIZE + ";'>"
//                    + sevBean.acceptLog() + "</div>");
            out.println("</div>");
            out.println("<div class='clear'></div>");
            Controller.log.info("showAllLog finish.");
        } catch (Exception ex) {
            Controller.log.error("Error showAllLog: " + ex.getMessage());
        }

    }
}
